#ifndef QDES_H
#define QDES_H

#include <QObject>
#include "des.h"
#include "des3.h"
#include <QByteArray>

#define DES_KEY1                                "xxxxxxxx"
#define DES_KEY2                                "yyyyyyyy"
#define DES_KEY3                                "zzzzzzzz"

class QDes : public QObject
{
    Q_OBJECT
public:
    explicit QDes(QObject *parent = nullptr);

    void encrypt(QByteArray &);
    void decrypt(QByteArray &);

    void encrypt3(QByteArray &);
    void decrypt3(QByteArray &);

private:
    DES des;
    DES3 des3;

signals:

};

#endif // QDES_H
